package ace.module.sms.core.impl.manager.supplier.impl;

import ace.cmp.core.model.R;
import ace.module.sms.supplier.api.SmsHandler;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author caspar
 * @date 2023/10/25 9:13
 */
@Slf4j
@AllArgsConstructor
@Component
public class TestSmsHandlerImpl implements SmsHandler {

  @Override
  public R<Void> send(String phoneNumber, String content) {
    log.info("send_sms_test ,phoneNumber:{},content:{}", phoneNumber, content);
    return R.ok();
  }

  @Override
  public R<Void> send(String phoneNumber, Map<String, String> contentParams) {
    log.info("send_sms_test ,phoneNumber:{},content:{}", phoneNumber, contentParams.toString());
    return R.ok();
  }
}
